package cn.yuanqiao.archive.danganzhengli.domain;

import cn.yuanqiao.common.annotation.Excel;
import cn.yuanqiao.common.core.domain.BaseEntity;
import cn.yuanqiao.common.utils.SecurityUtils;
import cn.yuanqiao.common.utils.StringUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 打包档案详情对象 A001_YQ_PACK_DETAIL
 * 
 * @author xy
 * @date 2024-09-13
 */
public class PackDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    private final String BIGTABLENAME = "_YQ_PACK_DETAIL";

    public PackDetail() {
        String tenantCode = SecurityUtils.getTenantCode();
        if(StringUtils.isEmpty(tenantCode)){
            tenantCode = SecurityUtils.getLoginUser().getUser().getTenantCode();
            if (StringUtils.isEmpty(tenantCode)){
                //throw new ServiceException("TenantCode is null");
            }
        }
        this.tableName = tenantCode.toUpperCase()+BIGTABLENAME;
    }

    private String tableName;

    /** id */
    @Excel(name = "id")
    private Long id;

    /** pid */
    @Excel(name = "pid")
    private Long pId;

    /** 档案Id */
    @Excel(name = "档案Id")
    private Long daId;


    private String title;

    private String dh;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setpId(Long pId) 
    {
        this.pId = pId;
    }

    public Long getpId() 
    {
        return pId;
    }
    public void setDaId(Long daId) 
    {
        this.daId = daId;
    }

    public Long getDaId() 
    {
        return daId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDh() {
        return dh;
    }

    public void setDh(String dh) {
        this.dh = dh;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    @Override
    public String toString() {
        return "PackDetail{" +
                "id=" + id +
                ", pId=" + pId +
                ", daId=" + daId +
                ", title='" + title + '\'' +
                ", dh='" + dh + '\'' +
                '}';
    }
}
